package Server.Message;

import Client.logic.MyFile;

public class MessageSubmitTask extends Message{
	/**********************************************
	 * (BDT)Baglama Developer Team software
	 * @author 
	 **** 
	 ******          
	 ********
	 *********/
	private static final long serialVersionUID = 1L;

	private int idLesson, idTask, idUser;
	
	private int day, month, year;
	
	private MyFile taskFile;
	/**
	 * 
	 * @param idLesson
	 * @param idTask
	 * @param idUser
	 * @param day
	 * @param month
	 * @param year
	 * @param taskFile
	 */
	public MessageSubmitTask(int idLesson, int idTask, int idUser, 
			int day, int month, int year, MyFile taskFile) {
		super(MessageType.MESSAGE_SUBMIT_TASK);
		this.idLesson = idLesson;
		this.idTask = idTask;
		this.idUser = idUser;
		this.day = day;
		this.month = month;
		this.year = year;
		this.taskFile = taskFile;
	}

	public int getIdUser() {
		return idUser;
	}

	public int getIdLesson() {
		return idLesson;
	}

	public int getIdTask() {
		return idTask;
	}

	public MyFile getTaskFile() {
		return taskFile;
	}
/**
 * 
 * @return date of submitted task
 */
	public int[] getDate(){
		int[] date = {day, month, year};
		return date;
	}

	

}
